package com.example.demo.service.impl;

import com.example.demo.mapper.UserDetailMapper;
import com.example.demo.module.UserDetailBean;
import com.example.demo.service.UserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:Samson
 * @Description:
 * @Date:Created in 2017/5/24.
 */
@Service("userDetailService")
public class UserDetailServiceImpl implements UserDetailService {

    @Autowired
    private UserDetailMapper userDetailMapper;

    @Override
    public UserDetailBean selectById(String id) {
        return userDetailMapper.selectById(id);
    }

    @Override
    public void deleteById(String id) {
        userDetailMapper.deleteById(id);
    }

    @Override
    public int update(UserDetailBean detail) {
        return userDetailMapper.update(detail);
    }

    @Override
    public int add(UserDetailBean userDetailBean) {
        return userDetailMapper.add(userDetailBean);
    }

    @Override
    public List<UserDetailBean> findAll() {
        return userDetailMapper.findAll();
    }
}


